package com.hqyj.cl.controller;

import com.hqyj.cl.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/info")
public class InfoController {
    @Autowired
    private InfoService infoService;

    @RequestMapping("/selectAllInfo")
    @ResponseBody
    public Map<String, Integer> selectAllInfo() {
        return infoService.selectAllInfo();
    }

}
